package com.hpq.user.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import java.util.Date;
import java.io.Serializable;

/**
 *用户申请表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "user_apply")
public class UserApply implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value="id", type = IdType.AUTO)
    private Long id;
    /**
     * 申请人uid
     */
    @TableField("uid")
    private Long uid;
    /**
     *申请类型 1加好友
     */
    private Integer type;
    /**
     *接收人uid
     */
    private Long targetId;
    /**
     * 申请信息
     */
    private String msg;
    /**
     *申请状态 1为待审批，2为同意
     */
    private Integer status;
    /**
     * 阅读状态 1未读 2已读
     */
    private Integer readStatus;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;
}
